#coding=utf-8
'''
Created on 2017-06-13

@author: sandy
'''

import zlib
import Const
import Utils
import Pack as packet

def login(sid):
    return packet.pack("HH",Const.CMD_XX2LOG_LOGIN,sid)


def saveData(uid,msgtype,msg):
    return packet.pack("HIHS",Const.CMD_XX2LOG_SAVE_DATA,uid,msgtype,Utils.u2pstr(msg))